/**
 * CustomLauncherActivity.java
 * com.jamin.custom_view_topbar_path
 *
 * Function： TODO 
 *
 *   ver     date      		author
 * ──────────────────────────────────
 *   		 2012-8-4 		wangjieming
 *
 * Copyright (c) 2012, TNT All Rights Reserved.
*/

package com.jamin.custom_view_topbar_path;

import android.app.LauncherActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.ArrayAdapter;

/**
 * ClassName:CustomLauncherActivity
 *
 * @author   wangjieming
 * @version  1.0
 * @since    v1.0
 * @Date	 2012-8-4 上午10:44:40 
 */
public class CustomLauncherActivity extends LauncherActivity{

	
	
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		ArrayAdapter<String> adapter = new ArrayAdapter<String>(this , android.R.layout.simple_list_item_1 , names);
		setListAdapter(adapter);
	}


	
	@Override
	protected Intent intentForPosition(int position) {
		return new Intent(CustomLauncherActivity.this , clazzs[position]);
	}

	
	
	Class<?> [] clazzs = { 
			TopBarActivity.class,
			PathActivity.class
	};

	
	String [] names = {
			"TopBar",
			"Path"
	};
	
	
	
}

